# coding=utf-8
# @Time    : 2018/3/1 10:57
# @Author  : Jiangxu
# @File    : 元类.py
# @Software: PyCharm
def fn(self, name='world'):
	print('Hello, %s.' % name)

Hello = type('Hello', (object,), dict(hello=fn))
h = Hello()
h.hello()

print(type(Hello))

print(type(h))